package com.app.micaihu.bean.topic;

import android.text.TextUtils;

import com.app.micaihu.bean.comment.BaseComment;
import com.app.micaihu.bean.comment.ChildComment;
import com.app.micaihu.bean.speak.IAttUser;
import com.app.micaihu.bean.speak.ICommentEntity;
import com.app.micaihu.bean.speak.ILaud;
import com.app.micaihu.configure.TypeConstant;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Guo on 2016/12/30.
 * <p>
 * 帖子列表中的adapter
 */

public class PostItemBean extends BaseComment implements ICommentEntity, ILaud, IAttUser, Serializable {


    private String title;
    private String rankIcon;
    private String rankName;
    private List<String> imgList;
    private String praiseNum;
    private String replyNum;
    private String publishTime;
    private String headPic;
    private String ctype;//帖子类型；1：正常帖子；其他暂时隐藏
    private String status;
    private String isFans;

    private String honourPic;//军团勋章
    private String armyGroupInfo;//所属军团 或 军团职位
    private String gid;//所属军团 id

    public String getGid() {
        return gid;
    }

    public void setGid(String gid) {
        this.gid = gid;
    }

    public String getHonourPic() {
        return honourPic;
    }

    public void setHonourPic(String honourPic) {
        this.honourPic = honourPic;
    }

    public String getArmyGroupInfo() {
        return armyGroupInfo;
    }

    public void setArmyGroupInfo(String armyGroupInfo) {
        this.armyGroupInfo = armyGroupInfo;
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRankIcon() {
        return rankIcon;
    }

    public void setRankIcon(String rankIcon) {
        this.rankIcon = rankIcon;
    }

    public String getRankName() {
        return rankName;
    }

    public void setRankName(String rankName) {
        this.rankName = rankName;
    }

    public List<String> getImgList() {
        return imgList;
    }

    public void setImgList(List<String> imgList) {
        this.imgList = imgList;
    }

    public String getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(String praiseNum) {
        this.praiseNum = praiseNum;
    }

    public String getReplyNum() {
        return replyNum;
    }

    public void setReplyNum(String replyNum) {
        this.replyNum = replyNum;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public String getCtype() {
        return ctype;
    }

    public void setCtype(String ctype) {
        this.ctype = ctype;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public boolean getIsFans() {
        return TextUtils.equals("1", isFans);
    }

    public void setIsFans(String isFans) {
        this.isFans = isFans;
    }


    @Override
    public boolean getNewsOrTopic() {
        return false;
    }

    @Override
    public String getIContent() {
        return getContent();
    }

    @Override
    public String getIFile() {
        return null;
    }

    @Override
    public String getINickName() {
        return getNickName();
    }

    @Override
    public String getIHeadPic() {
        return getHeadPic();
    }

    @Override
    public String getIRankName() {
        return getRankName();
    }

    @Override
    public String getIRankIcon() {
        return getRankIcon();
    }

    @Override
    public String getIPublishTime() {
        return getPublishTime();
    }

    @Override
    public String getICommentTitle() {
        return getTitle();
    }

    @Override
    public boolean getIIsFans() {
        return getIsFans();
    }

    @Override
    public String getIChildNum() {
        return null;
    }

    @Override
    public List<ChildComment> getIChildList() {
        return null;
    }

    @Override
    public void setIChildList(List<ChildComment> childList) {

    }

    @Override
    public String getIHonourPic() {
        return getHonourPic();
    }

    @Override
    public String getIArmyGroupInfo() {
        return getArmyGroupInfo();
    }

    @Override
    public String getILaudOperateType() {
        return TypeConstant.ZAN_NORMAL;
    }

    @Override
    public String getILaudNum() {
        return getPraiseNum();
    }

    @Override
    public String getILaudType() {
        return TypeConstant.COMMENT_ONE;
    }

    @Override
    public void setILaudNum(String iLaudNum) {
        setPraiseNum(iLaudNum);
    }

    @Override
    public String getNewsId() {
        return getTopicId();
    }

    @Override
    public String getICommentId() {
        return getId();
    }

    @Override
    public String getIParentCmtId() {
        return "0";
    }

    @Override
    public String getIType() {
        return TypeConstant.COMMENT_PARENT;
    }

    @Override
    public String getIToUid() {
        return getUid();
    }

    @Override
    public void setIToUid(String toUid) {
        setUid(toUid);
    }


    @Override
    public String getIAttType() {
        return getStatus();
    }

    @Override
    public void setIAttType(String status) {
        setStatus(status);
    }


}
